package com.wnzt.baszh.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.wnzt.baszh.dao.IPrintDao;
import com.wnzt.baszh.dao.IUtilDao;
import com.wnzt.baszh.service.IPrintService;
import com.wnzt.baszh.util.common.PageHelper;

/**
 * 打印接口实现类
 * @author Administrator
 * @date 2017-4-11
 */

@Repository
public class PrintServiceImpl implements IPrintService{
	
	@Autowired
	private IPrintDao printDao;

	@Autowired
	private IUtilDao utilDao;
	
	@Override
	public List getDept() {
		List list = utilDao.getDept();
		return list;
	}

	@Override
	public PageHelper printDataQuery(Map<String, Object> map) {
		PageHelper page = printDao.printDataQuery(map);
		return page;
	}

	@Override
	public List getBAXM() {
		List list = utilDao.getBAXM();
		return list;
	}

	@Override
	public List queryRelation() {
		List list = utilDao.queryRelation();
		return list;
	}

	@Override
	public List getPrintType() {
		List list = utilDao.getPrintType();
		return list;
	}

	@Override
	public boolean printRegister(Map<String, Object> map) {
		boolean  flag = printDao.printRegister(map);
		return flag;
	}

	@Override
	public boolean savePrintCharge(Map<String, Object> map) {
		boolean result = printDao.savePrintCharge(map);
		return result;
	}
	
	@Override
	public List<Map<String, Object>> getZzDoc() {
		List<Map<String, Object>> list = utilDao.getZzDoc();
		return list;
	}
	@Override
	public List<Map<String, Object>> getFcybs(String ksbh, String fcode) {
		List<Map<String,Object>> list = printDao.getFcybsByKsbh(ksbh,fcode);
		return list;
	}
	
	@Override
	public PageHelper fastPrintQuery(Map<String, Object> map) {
		PageHelper page = printDao.fastPrintQuery(map);
		return page;
	}
	
	@Override
	public PageHelper batchPrintQuery(Map<String, Object> map) {
		PageHelper page = printDao.batchPrintQuery(map);
		return page;
	}


	@Override
	public PageHelper copyPrintRecordSearch(
			Map<String, Object> map) {
		
		return printDao.copyPrintRecordSearch(map);
	}


	@Override
	public Object printPurposeSet() {
		
		return printDao.printPurposeSet();
	}

	@Override
	public Object showPrintSetOrder(String fid) {
		
		return printDao.showPrintSetOrder(fid);
	}

	@Override
	public Object addPrintPurpose(String fCODE, String fNAME, String fZJC) {
		
		return printDao.addPrintPurpose(fCODE, fNAME, fZJC);
	}
	
	@Override
	public Object editPrintPurpose(String fID, String fCODE, String fNAME,
			String fZJC) {
		
		return printDao.editPrintPurpose(fID, fCODE, fNAME, fZJC);
	}

	@Override
	public Object deletePrintPurpose(String fID) {
		
		return printDao.deletePrintPurpose(fID);
	}

	@Override
	public Object checkAllPrintPurpose() {
		
		return printDao.checkAllPrintPurpose();
	}
	
}
